package com.zgjkhis.modules.system.service.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zgjkhis.annotation.Query;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
* @date 2019-6-4 14:49:34
*/
@Data
@NoArgsConstructor
public class DrugWareHousingQueryCriteria {

    @Query
    @ApiModelProperty(value = "状态1：待审核，2已审核，3：已入库，4：已取消")
    private Integer status;

    @ApiModelProperty(value = "入库方式1：平台采购，2：退货入库，3：报溢，4：挑拨入库，5：赠品入库，6：普通入库，7：盘点入库(默认入库方式)")
    private String wareHousingType;

    @Query
    @ApiModelProperty(value = "订单号")
    private String wareHousingNo;

    @Query
    @ApiModelProperty(value = "订单开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startTime;

    @Query
    @ApiModelProperty(value = "订单结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    @Query
    @ApiModelProperty(value = "订单创建开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createStartTime;

    @Query
    @ApiModelProperty(value = "订单创建结束开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createEndTime;


    @ApiModelProperty(value = "药房id")
    private String pharmacyId;

    @ApiModelProperty(value = "供应商id")
    private Long supplierId;
    @ApiModelProperty(value = "供应商名称")
    private String supplierName;

    @ApiModelProperty(value = "1采购单 2入库单")
    private Integer type;

    @ApiModelProperty(value = "付款状态(0-未付款,1-已付款)")
    private Integer payStatus;
    @ApiModelProperty(value = "药品类型")
    private Integer drugType;

    @ApiModelProperty(value = "制单人")
    private String createUserName;
}
